<extend name="Public:base" />
<block name="content">
    <script>
        function check(){
            var work_name = $('input[name=work_name]').val();
            var desc = $('input[name=desc]').val();
            var sort = $('input[name=sort]').val();

            if($.trim(work_name) ==''){
                alert('年限不能为空！');
                return false;
            }
            if($.trim(sort)==''){
                alert('排序不能为空！');
                return false;
            }
            if(isNaN(sort)){
                alert('请输入数字！')
                return false;
            }

        }
    </script>
<div class="page-header">
<div class="row">
	<div class="col-xs-12">	
		<form class="form-horizontal"  id="validation-form" method="post" onsubmit="return check()" action='{:U("Renovation/addworktime")}'>
			<div class="form-group required">
				<label class="col-sm-2 control-label">年限：</label>
				<div class="col-sm-10">
					<input  class="form-control"  style="width:220px;"  type="text" placeholder="" name="work_name"  value="" />
				</div>
			</div>
			<div class="form-group required">
				<label class="col-sm-2 control-label">排序：</label>
				<div class="col-sm-10">
					<input  class="form-control" style="width:220px;" type="text" placeholder="" name="sort" value=""/>
				</div>
			</div>
			
			<div class="form-group required">
                <label class="col-sm-2 control-label">状态：</label>
                <label><input type="radio"  name="status" value="1" onclick="" checked="checked"/>开启</label>&nbsp;&nbsp;&nbsp;&nbsp;
                <label><input type="radio" name="status" value="2" onclick="" />关闭</label>
            </div>

			<div class="form-group">
				<label class="col-sm-1 control-label no-padding-left"> </label>	
				<div class="col-sm-11">
					<input type="submit" value="提交" class="btn btn-primary" />
				</div>
			</div>
		</form>
	</div>
</div>
</block>

